package com.jdk.demo.thread.reentrantLock;

import java.util.concurrent.locks.ReentrantLock;

public class Demo {

	public static void main(String[] args) throws InterruptedException {
		ReentrantLock lock = new ReentrantLock();
		for(int i=0; i<2; i++){
			Thread t = new Thread(new Executor(lock));
			t.start();
		}
		Thread.sleep(2000000);
	}

}
